package org.nmgyjt.springboot.beans.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

@Data
public class CsBusinessListVo implements Serializable {

    private String id;

    private String name;

    private static final long serialVersionUID = 1L;

    // 必须重写equals()和hashCode()方法，仅基于id字段
    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null || getClass() != obj.getClass()) return false;
        CsBusinessListVo other = (CsBusinessListVo) obj;
        return Objects.equals(id, other.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }

}
